import request from "./request";

// 登录接口
export function userLogin(data) {
	return request({
		url: '/api/qys/user/login',
		method: 'post',
		data
	})
}

//发送验证码
export function sendSms(data) {
	return request({
		url: `/api//qys/message/sendSms/${data}`
	})
}
//注册

export function register(userAccount, password, code) {
	return request({
		url: '/api/qys/user/register',
		method: 'post',
		data: {
			userAccount,
			password,
			code
		}
})
}

//修改密码
export function updatePwd(datas) {
	return request({
		url: '/api/qys/user/updatePwd',
		method: 'put',
		data: {
			newPassword: datas
		}
	})
}
